package conf
import (
	"github.com/spf13/viper"
	"go.uber.org/zap"
)

// NotifierSection map toml [notifier]
type NotifierSection struct {
	Worker uint32 
}

// ReadNotifier get notifier section from config
func ReadNotifier (v *viper.Viper, slog *zap.SugaredLogger) (notifierConf NotifierSection) {
	err := v.Unmarshal(&notifierConf)
	if err != nil {
		slog.Panicf("unable to decode into notifier section, %v", err)
	}
	slog.Debug(notifierConf)
	return
}